package com.lixun.passwordbook.util;
 
import ohos.hiviewdfx.HiLog; 
import ohos.hiviewdfx.HiLogLabel; 
 
/** 
* LogUtils 
* 
* @since 2021-04-12 
*/ 
public class LogUtils { 
private static final String TAG_LOG = "LogUtil"; 
 
private static final HiLogLabel LABEL_LOG = new HiLogLabel(0, 0, LogUtils.TAG_LOG); 
 
private static final String LOG_FORMAT = "%{public}s: %{public}s"; 
 
private LogUtils() { 
}

    /**
 * Print info log 
 * 
 * @param tag log tag 
 * @param msg log message 
 */ 
public static void info(String tag, String msg) { 
    HiLog.info(LABEL_LOG, LOG_FORMAT, tag, msg); 
}

    /**
 * Print error log 
 * 
 * @param tag log tag 
 * @param msg log message 
 */ 
public static void error(String tag, String msg) { 
    HiLog.error(LABEL_LOG, LOG_FORMAT, tag, msg); 
} 
}
